// 把所有接口导入
import Ajax from "./ajax.js"
export const reqBanner = () =>{
    return Ajax('/banner')
}   
export const reqPersonalized = () =>{
    return Ajax('/personalized')
}

export const reqGetHotSingerListRequest = (count) =>{
    return Ajax(`/top/artists?offset=${count}`);
}

export const reqChangeSingerList =(UrlA,UrlB) =>{
    return Ajax(`/artist/list?type=${UrlB}&area=${UrlA}`);
}

export const reqSongSheetDetail =(id) =>{
    return Ajax(`/playlist/detail?id=${id}`);
}

export const reqSingerInfoRequest = (id) =>{
    return Ajax(`/artists?id=${id}`);
}
export const reqSongUrl = (id) =>{
    return Ajax(`/song/url?id=${id}`);
}

export const reqSearch = (key) =>{
    return Ajax(`/search/suggest?keywords=${key}`);
}

export const reqSearchAll = (key) =>{
    return Ajax(`/search?keywords=${key}`);
}

export const reqSearchHotDetail = () =>{
    return Ajax(`/search/hot/detail`);
}

export const reqComment = (musicId,pageNo) =>{
    return Ajax(`/comment/new?type=0&id=${musicId}&sortType=3&cursor=1602072870260&pageSize=20&pageNo=${pageNo}`)
}

export const reqSongDetail =(id)=>{
    return Ajax(`/song/detail?ids=${id}`)
}

export const reqSongLyric = (id)=>{
    return Ajax(`/lyric?id=${id}`)
}

export const reqMV = (page)=>{
    return Ajax(`/top/mv?&offset=${page}`)
}

export const reqMVDetail = (id)=>{
    return Ajax(`/mv/url?id=${id}`)
}